How to write complementary function and general solution of differential equation